home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / metamail / config.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-05-20  |  4.2 KB  |  159 lines

  1. /*
  2. Copyright (c) 1991 Bell Communications Research, Inc. (Bellcore)
  3.  
  4. Permission to use, copy, modify, and distribute this material 
  5. for any purpose and without fee is hereby granted, provided 
  6. that the above copyright notice and this permission notice 
  7. appear in all copies, and that the name of Bellcore not be 
  8. used in advertising or publicity pertaining to this 
  9. material without the specific, prior written permission 
  10. of an authorized representative of Bellcore.  BELLCORE 
  11. MAKES NO REPRESENTATIONS ABOUT THE ACCURACY OR SUITABILITY 
  12. OF THIS MATERIAL FOR ANY PURPOSE.  IT IS PROVIDED "AS IS", 
  13. WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES.
  14. */
  15.  
  16. /* This is the top-level configuration file for the metamail distribution. */
  17. /* If your compiler does not automatically do so, you may wish to 
  18.       add a #define here that defines your system type, e.g.
  19.       #define LINUX
  20.       #define SYSV 
  21.       #define MSDOS
  22.       #define AMIGA
  23. */
  24.  
  25. #ifdef __svr4__
  26. #ifndef SYSV
  27. /* Stupid Solaris 2.0 machines define __svr4__ but not SYSV */
  28. #define SYSV
  29. #endif
  30. #endif
  31.  
  32. #ifdef LINUX
  33. #define SYSV /* Linux is SysV */
  34. #endif
  35.  
  36. #ifdef SVR3
  37. #ifndef SYSV
  38. /* Stupid SGI machines define SVR3 but not SYSV */
  39. #define SYSV
  40. #endif
  41. #endif
  42.  
  43. #ifdef __MSDOS__    /* Defined if using Borland C compiler? */
  44. #ifndef BORLAND
  45. #define BORLAND        /* Make sure BORLAND gets defined */
  46. #endif
  47. #ifndef MSDOS
  48. #define MSDOS   /* A common symbol we can use for all DOS compilers */
  49. #endif
  50. #endif
  51.  
  52. #ifdef _MSC_VER        /* Using Microsoft C compiler */
  53. #ifndef MICROSOFT
  54. #define MICROSOFT    /* Make sure MICROSOFT gets defined */
  55. #endif
  56. #ifndef MSDOS
  57. #define MSDOS   /* A common symbol we can use for all DOS compilers */
  58. #endif
  59. #endif
  60.  
  61. /* NOTE:  The RESET_PROGRAM resets the terminal to a "normal" state 
  62.    If you comment out the definition, all will be well except that metamail's
  63.    -R switch won't work, and metamail-called programs might be more likely
  64.    to screw up your terminal state */
  65.  
  66. #ifdef SYSV
  67. #define RESET_PROGRAM "tput clear"
  68. #else
  69. #define RESET_PROGRAM "/usr/ucb/reset"
  70. #endif
  71.  
  72. #ifdef SYSV
  73. #define killpg(a, b) kill(-(a), (b))
  74. #define bcopy(a, b, c) memcpy(b, a, c)
  75. #define bzero(a, b) memset(a, 0, b)
  76. #define bcmp memcmp
  77. #define index strchr
  78. #define rindex strrchr
  79. #define initstate srand
  80. #define random rand
  81. #define NO_RLIMITS 1
  82. #define sigtype void
  83. #endif
  84.  
  85. #ifdef __hpux
  86. #define NO_RLIMITS 1
  87. /* I've gotten conflicting reports about the best way to reset the terminal 
  88.   state under hpux.  I'm now using "/usr/bin/reset" as the default, but there 
  89.   have been two other suggestions as well.  Your mileage may vary! -- NSB */
  90. #undef RESET_PROGRAM
  91. #define RESET_PROGRAM "/usr/bin/reset"
  92. /* #define RESET_PROGRAM "tput clear" */
  93. /* #define RESET_PROGRAM "/bin/reset" */
  94. #endif
  95.  
  96. /* This constant should define the ASCII code for newlines on systems where 
  97.    the newline convention is other than CRLF.  On UNIX, it is ^J, ASCII 10. 
  98.     Here we define it as '\n' which should be right on MOST systems... */
  99. #define NEWLINE_CHAR '\n'
  100.  
  101. #ifdef MSDOS
  102. #undef NEWLINE_CHAR /* DOS uses CRLF */
  103. #undef RESET_PROGRAM
  104. #include <string.h>
  105. #define index  strchr
  106. #define rindex strrchr
  107. #define popen  fopen
  108. #define pclose fclose
  109. #define NO_RLIMITS 1
  110. #endif
  111.  
  112. #ifdef AMIGA
  113. #undef RESET_PROGRAM
  114. #define index  strchr
  115. #define rindex strrchr
  116. #define NO_RLIMITS 1
  117. #define DEFAULT_SPLIT_SIZE 95000
  118. #endif
  119.  
  120. /* The following defines the default size at which long
  121.     messages will be split into multiple messages of type
  122.     "message/partial" by the mailto and splitmail commands,
  123.     at least. */
  124. #ifndef DEFAULT_SPLIT_SIZE
  125. #define DEFAULT_SPLIT_SIZE 250000
  126. #endif
  127.  
  128. #ifndef sigtype
  129. #define sigtype int
  130. #endif
  131.  
  132. #ifdef MSDOS
  133. #define PATH_SEPARATOR ';'
  134. #ifndef STDPATH
  135. #define STDPATH ".\\mailcap;\\mailcap"
  136. #endif
  137. #else
  138. #ifdef AMIGA
  139. #define PATH_SEPARATOR ' '
  140. #ifndef STDPATH
  141. #define STDPATH "uulib:mailcap"
  142. #endif
  143. #else
  144. #define PATH_SEPARATOR ':'
  145. #ifndef STDPATH
  146. #define STDPATH "/.mailcap:/usr/local/etc/mailcap:/usr/etc/mailcap:/etc/mailcap:/etc/mail/mailcap:/usr/public/lib/mailcap"
  147. #endif
  148. #endif
  149. #endif
  150.  
  151. /* The following can be set to a directory or colon-separated list of 
  152.   directories that will be prepended to the user's search path before 
  153.   executing any mailcap-derived commands. 
  154.  
  155.   It should be set to NULL if there are no directories to prepend.  
  156. */
  157.  
  158. #define AUXPATH NULL
  159.